package com.caishi.lkx.order.ienum.type;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

/**
 * @author by keray
 * date:2019/9/5 11:27
 * 用户实体资产类型
 */
public enum AssetsType {
    //
    group("机构", 2),
    column("栏目", 3),
    skuCode("激活码", 4),
    industry("行业", 5),
    exam("考试", 6),
    category("科目", 7),
    product("产品", 8),
    ;
    @Getter
    private final String desc;

    @EnumValue
    @Getter
    private final Integer code;

    AssetsType(String desc, Integer code) {
        this.desc = desc;
        this.code = code;
    }
//    public static AssetsType rpcType(RpcAssetsType type) {
//        return AssetsType.valueOf(type.name());
//    }
}
